# -*- coding: utf-8 -*-
# @Time : 2023/11/29 19:05
# @Author : 支晓光
# @Email : 1473858993@qq.com
# @File : read_driver.py
# @Project : YouGuuUII
import configparser

filename = 'driver.ini'


class ReadDriver:
    def __init__(self, filename):
        self.config = configparser.ConfigParser()
        self.config.read(filename)

#
#
    def read_driver(self):
        keys = self.config.options('DRIVER')
        driver = {}
        for key in keys:
            value = self.config.get('DRIVER', key)
            driver[key] = value
        return driver


# ReadDriver('driver.ini').read_driver()